package day7;

import java.util.Scanner;

/**
 * @author oldliu
 * @since 1.0
 */
public class TestRange {
    public static void main(String[] args) {
        //控制int 范围  5-23
        Scanner in = new Scanner(System.in);
        char c = 'x';
        switch (c) {
            case 'a': {
                int i = c;
                System.out.println(i + "===》" + c);
            }
            break;
            case 'x': {
                int i = c;
                System.out.println(i + "===》" + c);
            }
            break;
        }
        int k;
//        while (true) {
//            k = in.nextInt();
//            if (k >= 5 && k <= 23) {
//                break;
//            }
//            System.out.println("输入错误");
//        }
        while ((k = in.nextInt()) < 5 || k > 23) {
            System.out.println("输入错误");
        }
        System.out.println("k=" + k);
    }
}
